package org.buyabi.buwifi;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.util.Log;

public class Preferences {
	public SharedPreferences prefs;
	
	public Preferences(Context context){
		prefs = context.getSharedPreferences("buwifi", 0);
	}

	public boolean isFirstRun(){
		Log.d("buwifi", "ilk çalıştırma"+prefs.getBoolean("firstRun", true));
		return prefs.getBoolean("firstRun", true);
	}
	
	public void setFirstRun(){
		Editor e = prefs.edit();
		e.putBoolean("firstRun", false);
		e.commit();
	}
}
